import * as importDataServices from '@/services/importData';

export default function ImportData() {
  const getOssUploadCert = (data?: importDataServices.UploadCertificateData) => {
    return importDataServices.getOssUploadCert(data);
  };

  const uploadFileToOss = (url: string, ossConfig: any) => {
    return importDataServices.uploadFileToOss(url, ossConfig);
  };

  const uploadFileToMinio = (url: string, ossConfig: any) => {
    return importDataServices.uploadFileToMinio(url, ossConfig);
  };

  return {
    getOssUploadCert,
    uploadFileToOss,
    uploadFileToMinio,
  };
}
